from google.appengine.ext import db

class Ohloh(db.Model):
    account = db.StringProperty()
    kudo_rank = db.IntegerProperty()
    position = db.IntegerProperty()
    max_position = db.IntegerProperty()
    createat = db.DateTimeProperty(auto_now_add=True)
    
    def to_dict(self):
        return {'account': self.account,
                'kudo_rank': self.kudo_rank,
                'position': self.position,
                'max_position': self.max_position,
                'createat': str(self.createat)
                }

class ApiKey(db.Model):
    name = db.StringProperty()
    

